package com.shi.yibanjia.enums;

import lombok.Getter;


@Getter
public enum AuthCodeEnum {


    NO_NEED_PERM("", "不需要权限"),

    PERM_MENU_SELECT("perm:menu:dql", "查询菜单"),
    PERM_MENU_INSERT_DELETE_UPDATE("perm:menu:dml", "新增/删除/修改菜单"),
    PERM_ROLE_SELECT("perm:role:dql", "查询角色"),
    PERM_ROLE_INSERT_DELETE_UPDATE("perm:role:dml", "新增/删除/修改角色"),
    PERM_ROLE_GIVE_MENUS("perm:role:giveMenus", "为角色分配权限"),
    PERM_ACCOUNT_SELECT("perm:account:dql", "查询用户"),
    PERM_ACCOUNT_INSERT_DELETE_UPDATE("perm:account:dml", "新增/删除/修改用户"),
    PERM_ACCOUNT_GIVE_ROLES("perm:account:giveRoles", "为用户分配角色"),
    SYS_LOG_DML("sys:log:dml","新增/删除/修改系统日志"),
    SYS_LOG_DQL("sys:log:dql","查询系统日志"),
    BIZ_TRANSPORT_FEE_DML("biz:transport:fee:dml", "新增/删除/修改运输费"),
    BIZ_TRANSPORT_FEE_DQL("biz:transport:fee:dql", "查询运输费用"),
    BIZ_CARRY_FEE_DML("biz:carry:fee:dml", "新增/删除/修改搬运费"),
    BIZ_CARRY_FEE_DQL("biz:carry:fee:dql", "查询搬运费"),
    BIZ_CARTYPE_DML("biz:carType:dml", "新增/删除/修改车型"),
    BIZ_CARTYPE_DQL("biz:carType:dql", "查询车型"),
    BIZ_CUSTOMER_DML("biz:customer:dml", "新增/删除/修改客户"),
    BIZ_CUSTOMER_DQL("biz:customer:dql", "查询客户"),
    BIZ_CUSTOMER_EXPORT("biz:customer:export", "导出客户报表"),
    BIZ_ORDER_DML("biz:order:dml", "新增/删除/修改订单"),
    BIZ_ORDER_DQL("biz:order:dql", "查询订单"),
    BIZ_ORDER_EXPORT("biz:order:export", "导出订单报表"),
    BIZ_COMMENT_DML("biz:comment:dml", "新增/删除/修改评论"),
    BIZ_COMMENT_DQL("biz:comment:dql", "查询评论"),
    BIZ_PUBLICITY_DML("biz:publicity:dml", "新增/删除/修改公告"),
    BIZ_PUBLICITY_DQL("biz:publicity:dql", "查询公告"),
    ;
    private String code;
    private String desc;

    AuthCodeEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
